<?php

namespace App\Models\Business;

use Illuminate\Database\Eloquent\Model;

// 时间格式化
use DateTimeInterface;

class Record extends Model
{
    protected $table = 'business_record';

    protected $guarded = [];

    protected $dateFormat = 'U';

    const CREATED_AT = 'createtime';

    const UPDATED_AT = null;

      // 序列化日期
      protected function serializeDate(DateTimeInterface $date)
      {
          return $date->format('Y-m-d H:i:s');
      }
}